What is PIP?
256
13-Oct-2025
Updated on 13-Oct-2025
Anubhav Kumar
13-Oct-2025Why You Need PIP
Python’s standard library is powerful, but many features (like web frameworks, data analysis, or machine learning tools) are provided by third-party packages.
PIP helps you:
Basic Commands
pip --versionpip 24.0 from ...pip install package_namepip install requestspip uninstall package_namepip uninstall requestspip install --upgrade package_namepip install --upgrade numpypip listpip show package_namepip show pandaspip freeze > requirements.txtpip install -r requirements.txtExample: Installing and Using a Package
Then in Python:
Output:
Where Does PIP Get Packages From?
By default, PIP installs packages from PyPI (Python Package Index) →
🔗 https://pypi.org/
Example: when you run
it downloads Flask from PyPI and installs it in your Python environment.
Virtual Environments and PIP
Usually, developers use virtual environments (e.g.,
venv) to isolate dependencies for each project.Example:
Now Django is installed only inside this environment, not globally.
Summary
pip install numpyvenv,conda)